;
;       led_0000.s  --  light led to all blink!
;       
;	Author:		lumit-admin <admin@lumit.org>
;	Date:		2004-8-17
;	Copyleft: 	http://www.lumit.org
;	

	AREA LED, CODE
	ENTRY

	
loop
	ldr	r1, =0x00000000		; show led = 0000	
	ldr	r0, =0x20800000
	strb	r1, [r0]

; delay for some time
	ldr	r1, =0x00FFFFFF
delay1	
	sub	r1, r1, #1
	cmp 	r1, #0
	bne	delay1

 
	ldr	r1, =0xff		; show led = 11111111	
	ldr	r0, =0x20800000
	strb	r1, [r0]
	
; delay for some time
	ldr	r1, =0x00FFFFFF
delay2
	sub	r1, r1, #1
	cmp 	r1, #0
	bne	delay2
	
	B	loop
	
	END